﻿@model DCH.Models.Register

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Register</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.ClubName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ClubName)
            @Html.ValidationMessageFor(model => model.ClubName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CaptainName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CaptainName)
            @Html.ValidationMessageFor(model => model.CaptainName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PlayerName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PlayerName)
            @Html.ValidationMessageFor(model => model.PlayerName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PlayerSkill)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PlayerSkill)
            @Html.ValidationMessageFor(model => model.PlayerSkill)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PlayerSquad)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PlayerSquad)
            @Html.ValidationMessageFor(model => model.PlayerSquad)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Phone)
            @Html.ValidationMessageFor(model => model.Phone)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.City)
            @Html.ValidationMessageFor(model => model.City)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.State)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.State)
            @Html.ValidationMessageFor(model => model.State)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TransactionNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TransactionNumber)
            @Html.ValidationMessageFor(model => model.TransactionNumber)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Payment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Payment)
            @Html.ValidationMessageFor(model => model.Payment)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
